package com.hsj.common.system.convert;

import com.hsj.common.system.entity.SysUserDo;
import com.hsj.common.system.vo.request.ReqSysUserCreateVo;
import com.hsj.common.system.vo.request.ReqSysUserUpdateVo;
import com.hsj.common.system.vo.response.RespSysUserVo;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 用户 Vo转换类
 * @Author: Czy
 * @Date: 2024-01-23 23:03:26
 * @Email: 314170122@qq.com
 */
@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
public interface SysUserConvert {

    SysUserDo voToDo(ReqSysUserCreateVo vo);

    SysUserDo voToDo(ReqSysUserUpdateVo vo);

    RespSysUserVo doToVo(SysUserDo sysUser);

    List<RespSysUserVo> doToVo(List<SysUserDo> sysUserList);
}
